package com.cleaningcloud.erp.domain.excelExport;

import com.cleaningcloud.common.core.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class WareCheckExcelExport {

    /** 盘点单号 */
    @Excel(name = "盘点单号", sort = 1)
    private String wareCheckOdd;
    /** 盘点标题 */
    @Excel(name = "盘点标题", sort = 2)
    private String wareCheckTitle;
    /** 盘点仓库ID */
    @Excel(name = "盘点仓库", sort = 3)
    private String wareName;
    /** 盘点方式(0日常盘点1定期盘点2临时盘点) */
    @Excel(name = "盘点方式", sort = 4, readConverterExp = "0=日常盘点,1=定期盘点,2=临时盘点")
    private Integer wareCheckType;
    /** 盘点时间 */
    @Excel(name = "盘点时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss", sort = 5)
    private Date wareCheckTime;
    // 盘点人
    @Excel(name = "盘点人", sort = 6)
    private String wareCheckPersonName;
    @Excel(name = "审批状态", sort = 7, readConverterExp = "0=待审批,1=已通过,2=被驳回")
    private Integer approveStatus;
    /** 审批人名称 */
    @Excel(name = "审批人",sort = 8)
    private String approveName;
    /** 审批时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "审批时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss", sort = 9)
    private Date approveTime;
    // 商品编号
    @Excel(name = "商品编号")
    private String commodityNo;
    // 商品名称
    @Excel(name = "商品名称")
    private String commodityName1;
    // 商品类别
    @Excel(name = "商品类别")
    private String commodityType;
    // 规格
    @Excel(name = "规格")
    private String commoditySpec;
    // 单位名称
    @Excel(name = "单位")
    private String unitName1;
    // 商品单价
    @Excel(name = "商品单价")
    private BigDecimal costPrice;
    // 库存数量
    @Excel(name = "当前库存")
    private int wareCommodityNumber;

    /**
     * 盘点数量
     */
    @Excel(name = "实盘数量")
    private int wareCheckNumber;

    /**
     * 盈亏数量
     */
    @Excel(name = "盈亏数量")
    private int quantityNumber;

    /**
     * 盈亏结果(0盘盈1盘亏2正常)
     */
    @Excel(name = "盈亏结果", readConverterExp = "0=盘盈,1=盘亏,2=正常")
    private Integer quantityResult;

    /**
     * 盈亏金额
     */
    @Excel(name = "盈亏金额")
    private BigDecimal quantityPrice;
}
